// 引入清除默认样式
@import url('./reset.scss');

//滚动条外观设置
::-webkit-scrollbar {
    width: 10px;
}

// 滚动条高度颜色
::-webkit-scrollbar-track {
    // background: $base-menu-background;
    background: #dadada;
}

// 滚动条小块
::-webkit-scrollbar-thumb {
    width: 8px;
    // background-color: yellowgreen;
    background-color: #409eff;
    border-radius: 10px;
}

// 中间区域
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e0e0e0;
    font-size: 15px;
    font-family: PingFangSC-Semibold, PingFang SC, sans-serif;
    font-weight: 600;
    color: #333;
    height: 34px;
    border-radius: 10px 10px 0px 0px;
    text-indent: 10px;
}

.box-card {
    width: 100%;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 23px 0 #0000000d;

    .box-content {
        padding: 20px;
    }
}

.box-minheight {
    min-height: calc(100vh - 76px);
}

.mt10 {
    margin-top: 10px;
}

.mt15 {
    margin-top: 15px;
}

.mt20 {
    margin-top: 20px;
}

.mb15 {
    margin-bottom: 15px;
}

.mb10 {
    margin-bottom: 10px;
}

.pdb10 {
    padding-bottom: 10px;
}


.notes-text {
    line-height: 26px;
    color: #666;
}

.align-center {
    width: 66%;
    // margin: 0 auto;
}

.center-title {
    padding: 6px 10px;
    background: #d7d7d7;
    // border: 1px solid #dedede;
    border-radius: 5px 5px 0px 0px;
    font-size: 16px;
}

.center-content {
    // height: 200px;
    border: 1px solid #d7d7d7;
    margin-top: 7px;
    border-radius: 0px 5px 5px 5px;
    padding: 25px;
}

.form-btn {
    text-align: center;
    margin-top: 25px;
}

@media only screen and (max-width: 1367px) {
    .align-center {
        width: 92%;
        margin: 0 auto;
    }
}

.alert {
    .alert-Content {
        display: flex;
        justify-content: space-between;
        background-color: #e6f7ff;
        border: 1px solid #91d5ff;
        padding: 8px 15px;
        border-radius: 4px;
        align-items: center;

        .red-text {
            color: #f00;
        }

        .alert-left {
            display: flex;
            width: 50%;
        }

        .alert-right {
            display: flex;
            cursor: pointer;

            &:hover {
                opacity: 0.8;
            }
        }

    }
}

.signal-drawer {
    .el-drawer__header {
        margin-bottom: 0 !important;
    }
}


.signal-card {
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, .10);

    .el-form-item {
        margin-bottom: 0 !important;
    }
}

.monitor-drawer {
    .el-drawer__header {
        margin-bottom: 0 !important;
    }

    .el-drawer__body {
        padding-top: 0px !important;
    }

    .monitor-content {
        height: calc(100vh - 190px);
        overflow: hidden;
        margin-top: 10px;
        display: flex;
        justify-content: space-between;

        .monitor-left {
            height: calc(100vh - 190px);
            overflow-x: hidden;
            overflow-y: auto;
            border: 1px solid #ececec;
            border-radius: 4px;
            width: 270px;
            padding: 10px;
            word-wrap: break-word;
            word-break: break-all;
        }

        .monitor-right {
            height: calc(100vh - 190px);
            overflow-x: hidden;
            overflow-y: auto;
            // border: 1px solid #ececec;
            border-radius: 4px;
            // padding: 10px;
            padding-right: 10px;
            word-wrap: break-word;
            word-break: break-all;
            flex: 1;
            margin-left: 10px;



            .el-card {
                border: 1px solid #ececec;
                color: #303133;

                .el-card__header {
                    padding: 0px 0px;
                    border-bottom: 1px solid #ececec;
                    font-size: 15px;
                    height: 30px;
                    line-height: 30px;
                    padding-left: 10px;
                    background: #ececec;
                }

                .el-card__body {
                    padding: 15px;
                    padding-bottom: 0px;
                }
            }
        }
    }
}



.data-settings {
    border: 1px solid;
}

.serial-form {
    .el-card {
        border: 1px solid #ececec;
        color: #303133;
        box-shadow: none;

        .el-card__header {
            padding: 0px 0px;
            border-bottom: 1px solid #ececec;
            font-size: 15px;
            height: 30px;
            line-height: 30px;
            padding-left: 10px;
            background: #ececec;
        }

        .el-card__body {
            padding: 15px;
            padding-bottom: 0px;
        }
    }
}

.add-monitor {
    .el-card {
        border: 1px solid #ececec;
        color: #303133;

        .el-card__header {
            padding: 0px 0px;
            border-bottom: 1px solid #ececec;
            font-size: 15px;
            height: 30px;
            line-height: 30px;
            padding-left: 10px;
            background: #ececec;
        }

        .el-card__body {
            padding: 15px;
            padding-bottom: 0px;
        }
    }
}


.layout_slider {

    .scrollbar {
        width: 100%;
        height: calc(100vh - $base-menu-logo-height);

        padding: 0 10px;

        .el-menu {
            border-right: none;
        }

        .el-sub-menu__title {
            font-size: 16px;
        }

        .el-menu-item {
            // margin: 0 10px
            font-size: 16px;
        }

        .el-menu-item.is-active {
            border-radius: 8px;
            background-image: linear-gradient(90deg, #01aeef, #0082de);
            color: #fff;

        }
    }



    &.fold {
        width: $base-menu-min-width;
    }
}

.bindDevice-card {
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, .10);
    padding-bottom: 0px;

    .el-form-item {
        // margin-bottom: 0 !important;
    }
}